import request from '@/utils/request'

// 查询待补亏项目信息列表
export function listFundFpLossDeal(fpId) {
  return request({
    url: '/fp/fundFpLossDeal/list/' + fpId,
    method: 'post'
  })
}

// 已选择补亏信息
export function getCheckedList(fpId) {
  return request({
    url: '/fp/fundFpLossDeal/checkedList/' + fpId,
    method: 'post'
  })
}

// 已选择补亏信息
export function saveChecked(data) {
  return request({
    url: '/fp/fundFpLossDeal/saveChecked',
    method: 'post',
    data: data
  })
}

// 分配计算
export function allocationCalculate(id) {
  return request({
    url: '/fp/fundFpMain/allocation/' + id,
    method: 'post'
  })
}
